/*
 * @(#)Node.java
 *
 * Revision:
 * Author                                         Date           
 * --------------------------------------------   ------------   
 *  Jeremias D. Serafim de Araujo                     14/11/2012    
 */


package br.edu.ufcg.splab.core.vertex;


/**
 * 
 * A class that represent a Node of Tree
 * 
 * @see AbstractVertex
 * 
 **/

public class Node extends AbstractVertex{

	/**
	 * A string represents a marking
	 * the mark serves to identify where it will be pasted subtree
	 * 
	 * */
	private String keyMarked;
		
	
	/**
	 * @see abstracts.AbstractVertex
	 * */
	public Node(String label) {
		super(label);
		this.keyMarked = "";
	}
	
	/**
	 * Returns true
	 * 
	 * Checkes if the uuid are equals
	 * */
	@Override
	public boolean equals(Object o) {
		
		if(o instanceof Node){
			Node n = (Node) o;
			if(this.getUUID().equals(n.getUUID())){
				return true;
			}
		}
		return false;
	}

	/**
	 * Changes the string keyMarked
	 * 
	 * @param string the keyMarked to set
	 */
	public void setKeyMarked(String s){
		this.keyMarked=s;
	}
	/**
	 * Returns the string keyMarked
	 * 
	 * @return the keyMarked
	 */
	public String getKeyMarked(){
		return this.keyMarked;
	}

}
